﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/AdminMasterPage.master" Inherits="System.Web.Mvc.ViewPage<easyccms.WebUI.Areas.Administrator.Models.ArticleCreateModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <div id="main-content">
        <div class="title title-spacing">
            <h2>
                Add Article</h2>
            Adding article
        </div>
        
        <% 
            Html.EnableClientValidation();
            using (Html.BeginForm()){
        %>
        <%= Html.ValidationSummary(true)%>
              <%= Html.HiddenFor(model=>model.ArticleId) %>
        <ul>
            <%= Html.CcTextBoxFor(model => Model.Title, "desc", new { @class = "field text large" })%>
            <%= Html.CcDropDownFor(model => model.MenuItemId, Model.MenusItems, "desc", new { @class = "field text large" })%>

            <%= Html.CcTextAreaFor(model => Model.Text, "desc", new { @class = "field textarea medium", cols=50, rows=5 })%>
            
          
            <li class="buttons">
                <input type="submit" class="submit" value="Submit" />
            </li>
        </ul>
        <% }
        %>
        <div class="clearfix">
        </div>    
         <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>    
    </div>


</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="JavaScriptHolder" runat="server">

    <script src="../../../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
    <script src="../../../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
</asp:Content>

